<%--
  Created by IntelliJ IDEA.
  User: bobo
  Date: 2021/7/12
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <%
        //ServletContext() application
        String appName = request.getServletContext().getInitParameter("appName");
        application.setAttribute("appName",appName);
    %>
    <%--EL是从容器中获取attribute ，如果事先没有setAttribute，则取不到数据--%>
    <title>${appName}错误页面</title>
</head>
<body>
<%
    //String msg = (String) request.getSession().getAttribute("msg");
%>
<h1>error</h1>
<h1>${msg}</h1>
</body>
</html>
